<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<link type="text/css" href="${request.contextPath}/css/alerts/jquery.alerts.css" rel="stylesheet" />
<link type="text/css" href="${request.contextPath}/css/common.css" rel="stylesheet" />
<link type="text/css" href="${request.contextPath}/css/main.css" rel="stylesheet" />
<!--引入jquery-->
<script type="text/javascript" src="${request.contextPath}/js/jquery.alerts.js"></script>
<script type="text/javascript">
	function delinfo(tid)
	{
		jConfirm('确定删除？', '<s:text name="Page.Alert.Info"/>', function(r) {
	        if (r) {
	        	window.location.href = 'delete.action?tid=' + tid;
		        }
	        else {return;}
	    },{okButton:"<s:text name="Page.Confirm.Yes"/>",cancelButton:"<s:text name="Page.Confirm.No"/>"});
	}
</script>
</head>
<body>
<div class="portlet collapsible" >
	<div class="pageheader">教师状态类型列表</div>
	<hr>
		<div class="portlet-content">
			<s:if test="hasFieldErrors()">
				<div class="fielderror">
					<s:fielderror></s:fielderror>
				</div>
			</s:if>
			<s:if test="hasActionErrors()">
				<div class="actionerror">
					<s:actionerror/>
				</div>
			</s:if>
			<s:form method="post" action="list" namespace="/TeacherType">
			<div>
			<table class="ListTable">
				<tr>
					<td>名称</td>
					<td>描述</td>
					<td>创建时间</td>
					<td>创建人</td>
					<td></td>
				</tr>
				<s:iterator value="resultList" var="lr">
					<tr>
						<td><a href="view.action?tid=${lr.tid}">${lr.tname}</a></td>
						<td>${lr.tdes}</td>
						<td>${lr.createdtime}</td>
						<td>${lr.createdby}</td>
						<td>
							<a href="edit.action?tid=${lr.tid }">编辑</a> | <a href="javascript:delinfo('${lr.tid }')">删除</a>
						</td>
					</tr>
				</s:iterator>
			</table>
			<div class="functionButton">
				<input type="button" class="normalButton" value="新增" onclick="javascript:window.location.href='add.action'"></input>
			</div>
			</div>
			</s:form>
		</div>
</div>
</body>
</html>